<script setup>
import HelloWorld from './components/HelloWorld.vue'
import TheWelcome from './components/TheWelcome.vue'
</script>

<template>
    <div class="header">
        MDONG梦动 梦巢管理平台
    </div>
    <div class="container">
        <div class="title">
            <img src="" alt="Login Image">
        </div>
        <div class="card">
            <div class="avatar">
                <!-- <img src="./avatar1.png" alt="Avatar"> -->
            </div>
            <input type="text" placeholder="用户名" required>
            <input type="password" placeholder="密码" required>
            <div>
                <input type="checkbox" id="remember">
                <label for="remember">保持会话</label>
            </div>
            <button>登录</button>
        </div>
    </div>
</template>

<style>
  body {
            font-family: Arial, sans-serif;
            /*background-image: url('bg.png'); */
            background-size: cover; 
            background-position: center; 
            background-repeat: no-repeat; 
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
        }
        .header {
            background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
            color: #ff5e3a; /* 与图片中的文字颜色一致 */
            width: 100%;
            padding: 10px 0;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
        }
        .container {
            display: flex;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            margin-top: 20px;
        }
        .title {
            background: linear-gradient(to bottom, #ffcc80, #ff5e3a);
            width: 50%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: #fff;
            font-size: 24px;
            font-weight: bold;
        }
        .title img {
            width: 80%;
        }
        .card {
            padding: 40px;
            width: 50%;
            background-color: #fff;
        }
        .card .avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: #ddd;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 20px;
        }
        .card .avatar img {
            width: 50px;
            height: 50px;
        }
        .card input[type="text"],
        .card input[type="password"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        .card input[type="checkbox"] {
            margin-right: 5px;
        }
        .card button {
            width: 100%;
            padding: 10px;
            background-color: #ff5e3a;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        .card button:hover {
            background-color: #e65100;
        }
</style>
